package com.github.cdisk.xtrans.ui;

import org.eclipse.swt.widgets.ExpandBar;
import org.eclipse.swt.widgets.Table;
import org.eclipse.swt.widgets.Tree;

import com.github.cdisk.xtrans.ui.toolbox.ObjectListBox;

/**
 * UI上下文，方便四处控制用
 * @author Cdisk
 *
 */
public class Context {

	private CanvasPanel canvas;

	private ExpandBar toolbox;

	private Tree attribute;

	private Table connect;

	private ObjectListBox listObjects;

	public Context() {
	}
	
	public Context(CanvasPanel canvas, ExpandBar toolbox, Tree attribute, Table connect, ObjectListBox listObjects) {
		this.canvas = canvas;
		this.toolbox = toolbox;
		this.attribute = attribute;
		this.connect = connect;
		this.listObjects = listObjects;
	}

	public CanvasPanel getCanvas() {
		return canvas;
	}

	public void setCanvas(CanvasPanel canvas) {
		this.canvas = canvas;
	}

	public ExpandBar getToolbox() {
		return toolbox;
	}

	public void setToolbox(ExpandBar toolbox) {
		this.toolbox = toolbox;
	}

	public Tree getAttribute() {
		return attribute;
	}

	public void setAttribute(Tree attribute) {
		this.attribute = attribute;
	}

	public Table getConnect() {
		return connect;
	}

	public void setConnect(Table connect) {
		this.connect = connect;
	}

	public ObjectListBox getListObjects() {
		return listObjects;
	}

	public void setListObjects(ObjectListBox listObjects) {
		this.listObjects = listObjects;
	}

}
